package com.itheima.client;
import com.itheima.po.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;


/**
 * @author zhanliuzhu
 * @date 2023/10/28
 * @Description
 */
@FeignClient("addressservice")
public interface AddressClient {
    @GetMapping("/address/{id}")
    public List<Address> getByUserId(@PathVariable Long id);
}
